.TH ispunct 3 "" "" ""
.SH SYNOPSIS
ispunct \- punctuation character predicate
.SH ANSI_SYNOPSIS
#include <ctype.h>
.br
int ispunct(int 
.IR c );
.br
.SH TRAD_SYNOPSIS
#include <ctype.h>
.br
int ispunct(
.IR c );
.br
.SH DESCRIPTION
.BR ispunct 
is a macro which classifies ASCII integer values by table
lookup. It is a predicate returning non-zero for printable
punctuation characters, and 0 for other characters. It is defined
only when 
.BR isascii (<[c]>)
is true or 
.IR c 
is EOF.

You can use a compiled subroutine instead of the macro definition by
undefining the macro using `
.BR #undef ispunct '.
.SH RETURNS
.BR ispunct 
returns non-zero if 
.IR c 
is a printable punctuation character 
(
.BR isgraph(<[c )
&& !isalnum(
.IR c )>>).
.SH PORTABILITY
.BR ispunct 
is ANSI C.

No supporting OS subroutines are required.
.SH SOURCE
src/newlib/libc/ctype/ispunct.c
